package com.neusoft.boot32.dibuy;


import com.fasterxml.jackson.databind.SerializationFeature;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;

import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.neusoft.boot32.dibuy.mapper")
public class BootWebMybatisPlusMain {



    public static void main(String[] args) {
        SpringApplication.run(BootWebMybatisPlusMain.class, args);
        System.out.println("Hello world!");
    }
    @Bean
    public Jackson2ObjectMapperBuilderCustomizer customizer() {
        return builder -> builder.featuresToEnable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
    }

}